package com.leon.spring.day01.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * Created by Administrator on 2017/4/15.
 */
public class TetsDemo {
    public  static  void main(String[] args){
        ApplicationContext ac =
                new FileSystemXmlApplicationContext("E:\\javaProj\\code\\spring01\\src\\com\\leon\\spring\\day01\\applicationContext.xml");
        Demo01 bean1 = ac.getBean("demo01", Demo01.class);

        Demo01 bean2 = ac.getBean("demo01", Demo01.class);

        System.out.println(bean1);
        System.out.println(bean2);
        bean1.hello();
        System.out.println(ac);

        System.out.println("胡国栋");
    }
}
